<template>
  <div>
    <el-container>
      <el-header>
        <myheader></myheader>
      </el-header>
      <el-container>
        <el-aside width="180px">
          <Lefnav></Lefnav>
        </el-aside>
        <el-container>
          <el-main>
            <router-view></router-view>
            <!-- <manager></manager> -->
          </el-main>
          <el-footer>
          </el-footer>
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>
<script>
  // 声明子组件 头部组件 面包屑 @/components/header/index.vue
  import myheader from "@/components/header";
  import Lefnav from "../components/lefnav";
  import Manager from "./rbacManager/manager.vue";
  import Page from "../components/page";
  export default {
    components: {
      myheader,
      Lefnav,
      Manager,
      Page,
    },
    data() {
      return {
        pageTotal: 100,
      };
    },
    methods:{
      fatherMethod(e){
        console.log("父组件接收到的子组件的值：",e);
        this.pageTotal = e
      }
    }
  };
</script>
<style scoped>
.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 60px;
  padding-top: 20px;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  line-height: 0px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: 0px;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>